package com.walterweimod.auxiliary_attributes.event;

import static com.walterweimod.auxiliary_attributes.Auxiliary_attributes.*;

import com.walterweimod.auxiliary_attributes.attribute.ModAttributes;
import net.minecraft.world.entity.EntityType;
import net.minecraftforge.event.entity.EntityAttributeModificationEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

@Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class AttributeInitializationEvent {
    @SubscribeEvent
    public static void initializeAttribute(EntityAttributeModificationEvent event){
        getLogger().info("adding attributes to player!!!");

        event.add(EntityType.PLAYER, ModAttributes.CRITICAL_HIT_CHANCE.get());
        event.add(EntityType.PLAYER, ModAttributes.CRITICAL_HIT_DAMAGE.get());
        event.add(EntityType.PLAYER, ModAttributes.DEFENSE.get());
        event.add(EntityType.PLAYER, ModAttributes.SPECIAL_DEFENSE.get());
        event.add(EntityType.PLAYER, ModAttributes.HEAL_BONUS.get());
        event.add(EntityType.PLAYER, ModAttributes.HEAL_BOOST.get());
        event.add(EntityType.PLAYER, ModAttributes.MAX_RAGE.get());
        event.add(EntityType.PLAYER, ModAttributes.MIN_RAGE.get());
        event.add(EntityType.PLAYER, ModAttributes.MAX_TENACITY.get());
        event.add(EntityType.PLAYER, ModAttributes.MAX_HEAL_PERCENT.get());
        event.add(EntityType.PLAYER, ModAttributes.MAX_BLOOD_POOL.get());
    }
}
